<?php
/*
 * Created on 2011-1-15
 * by lixilei
 */

class FeedbackBiz{
	
	/**
	 * 记录反馈信息
	 */
	public function recordFeedback($type, $content, $user_id=0){
		if($user_id == NULL){
			$user_id = 0;
		}
		$feedbackDB = spClass("FeedbackModel", null, MODEL_PATH."FeedbackModel.php");
		$row = array(
			"user_id" => $user_id,
			"type" => $type,
			"content" => $content,
		);
		$result = $feedbackDB->create($row);
		if($result != FALSE){
			return TRUE;
		}
		return FALSE;
	}
}
?>
